<?php $arrType = LoadConfig::$arrayTypeGame;  ?>
<div class="left">
    <?php $this->widget("AdminLodeGame")?>
</div>
<form method="get" action="" name="winner-form" id = "winner-form">
    <div class="right-main">
        <div class="righ-cont">
            <div class="right">
                <div class="title_style"> <span><b>Danh sách người trúng giải </b></span></div>
                <p>Chọn tỉnh, hoặc loại game để tìm kiếm</p>  
                <div class="tool clearfix">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tbody>
                            <tr>
                                <td width="110" class="text-right"><label>Tỉnh đặt cược</label></td>
                                <td width="150"><select class="w90" name="pid"><option value ="0">Tất cả</option>
                                        <?php foreach($province as $tinh){?>
                                            <option value="<?=$tinh['id']?>" <?=isset($_GET['pid']) && $_GET['pid'] == $tinh['id']?"selected='selected'":""?>><?=$tinh['name']?></option>
                                            <?php }?>
                                    </select></td>
                                <td width="80" class="text-right"><label>Loại Game</label></td>
                                <td width="100">
                                    <select class="w90" name="type">
                                        <option value ="0">Tất cả</option>
                                        <?php foreach($arrType as $key=>$value):?>   
                                            <option value="<?=$key?>" <?=isset($_GET['type']) && $_GET['type'] == $key ?"selected='selected'":""?>><?=$value?></option>
                                            <?php endforeach;?>
                                    </select>
                                </td>
                                <td><input type="submit" value="Tìm kiếm"></td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div class="table clearfix">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tbody>
                            <tr class="bg_gray">
                                <td width="6%"><b>STT</b></td>
                                <td width="10%"><strong>Ngày</strong></td>
                                <td width="8%"><strong>ID Ticket </strong></td>
                                <td width="13%"><strong>Tên người chơi</strong></td>
                                <td width="10%"><strong>Loại Game</strong></td>
                                <td width="18%"><strong>Bộ số trúng thưởng<br />
                                        tiền cược</strong></td>
                                <td width="10%"><b>Số tiền thưởng</b></td>
                                <td width="12%"><b>Tỉnh đặt cược</b></td>
                            </tr>
                            <?php for($i = 0 ; $i < $count_data; $i++){?>  
                                <tr>
                                    <td><?=$begin + $i + 1?></td>
                                    <td><?=$ticket[$i]['ngay_quay_thuong']?></td>
                                    <td><?=$ticket[$i]['id']?></td>
                                    <td><?=$ticket[$i]['username']?></td>
                                    <td><?php echo $arrType[$ticket[$i]['kieu_danh']]?></td>  
                                    <td><strong class="clblue"><?php echo rtrim($str_boso[$i],", ");?></strong></td>
                                    <td><?=$ticket[$i]['tien_thuong']?></td>
                                    <td>XS <?=$ticket[$i]['province_name']?></td>
                                </tr>
                                <?php }?>                        
                        </tbody>
                    </table>
                </div>
                <div class="fillters clearfix">
                    <ul class="paging fr">
                        <li><span class="nomal"><b><?php echo isset($page)?$page:"";?></b></span></a></li>       
                    </ul>
                </div>
            </div>
        </div>
    </div>
</form>  